#include "../include/tester.h"
#include "../include/base_util.h"

template <typename T>
void swap1(T **p, T **q){
    T* t = *p; 
    *p = *q; 
    *q = t;
}
template <typename T>
void swap2(T &p, T &q){
    T t = p; 
    p = q; 
    q = t;
}
template <typename T>
void swap3(T *p, T *q){
    T t = *p; 
    *p = *q; 
    *q = t;
}

int test_swap(){
    char a1[] = "aaa";
    char b1[] = "bbb"; 
    char *a = a1;
    char *b = b1;
    swap1(&a,&b);

    target_sys_call(a,1);
    target_sys_call(b,0);

    return 0;
}